const { LocalSubtitleConverter } = require('../src/utils/subtitleConverterLocal.js');
const path = require('path');

async function testWhisperASS() {
  // 配置参数 - 请修改为实际路径
  const videoPath = 'input/mp3/kCtDawsZ.mp4';
  const outputPath = './whisper_subtitles.ass';

  try {
    // 创建转换器实例并生成字幕
    const converter = new LocalSubtitleConverter();
    
    // 使用Whisper生成ASS字幕
    await converter.generateASSWithWhisper(videoPath, outputPath);
    
    console.log('Whisper ASS字幕生成完成!');
  } catch (error) {
    console.error('处理失败:', error);
  }
}

// 运行测试
testWhisperASS();